import { useMemo } from 'react';
import { useSearchParams } from 'next/navigation';

export const useDebugEnv = () => {
    const searchParams = useSearchParams();

    return useMemo(() => {
        return searchParams.has('debug');
    }, [searchParams]);
};
